﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;

namespace HelenServer.Migrator;

[Table("zt_module")]
[Index("Root", Name = "root")]
[Index("Type", Name = "type")]
public partial class ZtModule
{
    [Key]
    [Column("id", TypeName = "mediumint(8) unsigned")]
    public uint Id { get; set; }

    [Column("root", TypeName = "mediumint(8) unsigned")]
    public uint Root { get; set; }

    [Column("name")]
    [StringLength(60)]
    public string Name { get; set; } = null!;

    [Column("parent", TypeName = "mediumint(8) unsigned")]
    public uint Parent { get; set; }

    [Column("type")]
    [StringLength(30)]
    public string Type { get; set; } = null!;

    [Column("deleted", TypeName = "enum('0','1')")]
    public string Deleted { get; set; } = null!;
}